package com.yn.xr.common.exception;


import com.yn.xr.common.constants.ExceptionErrorCodeDef;
import com.yn.xr.common.exception.base.BaseException;
import com.yn.xr.common.properties.PropertyConfig;
import com.yn.xr.common.util.StringUtils;
/**
 * 用户密码设置异常类
 */
public class UserPwdSetException extends BaseException {
	
	private static final long serialVersionUID = -8663550575883225248L;

	public UserPwdSetException(String errorMsg) {
		super(ExceptionErrorCodeDef.USER_SET_PWD_ERROR, StringUtils.isEmpty(errorMsg)?PropertyConfig.getValueBykey(String.valueOf(ExceptionErrorCodeDef.USER_SET_PWD_ERROR)):errorMsg);
	}
	
	public UserPwdSetException() {
		super(ExceptionErrorCodeDef.USER_SET_PWD_ERROR, PropertyConfig.getValueBykey(String.valueOf(ExceptionErrorCodeDef.USER_SET_PWD_ERROR)));
	}
	
}
